package tungsten.base;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;

/**
 * Created by Lv on 2016/7/1.
 */
public class SpringContext
{
    private static ApplicationContext context;

    public static void initialize(String url)
    {
        context = new FileSystemXmlApplicationContext(url);
    }

    public static Object getBean(String name)
    {
        return context.getBean(name);
    }
}
